dictD = {"王力宏":80, "周杰伦":58, "林俊杰":65, "王宝强":50,"王思聪":40,"王心凌":99}
# 循环遍历打印所有的名字
for keys in dictD.keys():
    print(keys,end=" ")
print()
# 循环遍历打印所有的分数
for values in dictD.values():
    print(values,end=" ")
print()
# (选做)求考试的平均分
sum=0
for values in dictD.values():
    sum+=values
print(f"{sum / len(dictD):.2f}")

# (选做)循环遍历打印考试成绩及格的名字
for keys,values in dictD.items():
    if values>=60:
     print(keys,"---->",values,end=" ")